package tmp;

import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * Created by dycong on 2017/3/21.
 */
@Data
public class CcbOrder {

    public enum Status {
        WAIT_BUYER_PAY,
        WAIT_SELLER_SEND_GOODS,
        WAIT_BUYER_CONFIRM_GOODS,
        TRADE_FINISHED,
        TRADE_CLOSED,
        TRADE_CANCELLED,
        ORDER_DELETED,
        WAIT_SELLER_REFUND_SEND_GOODS,
        WAIT_SELLER_REFUND_CONFIRM_GOODS,
        PART_PAY,
        PART_REFUND,
        PART_AFFIRM_PAY,
    }


    @Data
    public static class CcbShipInfo {
        String name;
        String province;
        String city;
        String country;
        String address;
        String zip;
        String mobile;
        String phone;
    }


    public static class InvoiceInfo {
        //TODO
    }

    public CcbOrder(){}

    public CcbOrder(String orderId, Status status) {
        this.orderId = orderId;
        this.status = status;
    }

    String orderId;
    Status status;

    String memo;
    String buyerEmail;
    String buyerName;
    String buyerId;

    Date orderTime;
    Date paymentTime;

    int amountFen;
    int payFen;
    int couponFen;
    int merchantDiscountFen;
    int deliveryFeeFen;

    CcbShipInfo shipInfo;

    List<CcbProduct> productItems;
//    CcbProduct productItems;
}
